package com.designpatterns.behavioral.facade.imp;

import cn.hutool.core.util.ReflectUtil;
import com.designpatterns.utils.YMLUtil;

public class Client {
    public static void main(String[] args) {
        Object className = YMLUtil.getValue("C:\\Users\\32674\\IdeaProject\\design-partterns\\src\\" +
                        "main\\java\\com\\designpatterns\\behavioral\\facade\\imp\\config.yml",
                "className");
        assert className != null;
        AbstractEncryptFacade ef = (AbstractEncryptFacade) ReflectUtil.newInstance(className.toString());
        ef.fileEncrypt("C:\\Users\\32674\\IdeaProject\\design-partterns\\src\\main\\java\\com\\designpatterns\\behavioral\\facade\\src.txt"
                ,"C:\\Users\\32674\\IdeaProject\\design-partterns\\src\\main\\java\\com\\designpatterns\\behavioral\\facade\\des.txt");
    }
}
